Copyright ã1995 by NeXT Computer, Inc.  All Rights Reserved.

DBImageView

Inherits From:	Control : View : Responder : Object

Declared In:	dbkit/DBImageView.h

Class Description

A DBImageView displays a single NXImage object bordered by one of four types of frame.  Providing editing is enabled, the user can drag a new image into a DBImageView's frame (using the Application Kit's image-dragging mechanism).

The Database Kit permits a DBImageView object to be connected to any database field whose data is of type object and class NXImage.

Instance Variables

None declared in this class.

Method Types

Internals	- initFrame:
- drawSelf::

Accessing the image	- image
- setImage:

Accessing the border	- setStyle:
- style

Editing	- isEditable
- setEditable:

Instance Methods

drawSelf::

- drawSelf:(const NXRect *)rects :(int)rectCount

Draws the DBImageView.  You never invoke this method yourself, it's invoked automatically by the Application Kit's display mechanism.  Returns self.

See also:  - drawSelf:: (View; Application Kit)

image

- image

Returns the image view's NXImage object.

initFrame:

- initFrame:(const NXRect *)frameRect

Initializes the image view with the given frame.  Returns self.

isEditable

- (BOOL)isEditable

Returns YES if the image can be replaced or deleted.

See also:  - setEditable: 

setEditable:

- setEditable:(BOOL)flag

Makes the DBImageView editable or not, as flag is YES or NO.  When an image view is editable, it still must be deleted or replaced as a whole; ªeditableº doesn't involve fiddling with bits.

See also:  - isEditable 

setImage:

- setImage:newImage

Sets the image view's NXImage to newImage.  Returns self.

setStyle:

- setStyle:(int)newStyle

Sets the style in which the image's border is drawn.  The argument newStyle must be one of the following:

   DB_ImageNoFrame = 0
   DB_ImagePhoto
   DB_ImageGrayBezel
   DB_ImageGroove

See also:  - style: 

style

- (int)style

Returns the current border style, as one of the possible styles listed as arguments of setStyle:.